using SheLife.Domain.Entities;

namespace SheLife.Domain.Interfaces.Repositories
{
    /// <summary>
    /// 系统字典仓储接口
    /// </summary>
    public interface ISystemDictionaryRepository : IRepository<SystemDictionary>
    {
        Task<IEnumerable<SystemDictionary>> GetByCategoryAsync(string category);
        Task<SystemDictionary> GetByCodeAsync(string code);
        Task<IEnumerable<SystemDictionary>> GetByParentCodeAsync(string parentCode);
        Task<IEnumerable<SystemDictionary>> GetActiveDictionariesAsync();
        Task<bool> IsCodeExistsAsync(string code);
        Task<bool> IsCategoryExistsAsync(string category);
    }
}